home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / DEMONSTR / MATHVIEW.ZIP / COND.M < prev    next >
Text File  |  1993-03-23  |  211b  |  11 lines

  1. function y=cond(x)
  2. %y=cond(x)
  3. %x - input matrix
  4. %y - the condition number of a matrix using the SVD
  5.  
  6. %       S.Halevy 7/31/92
  7. %       Copyright (c) 1992 by the MathWizards
  8.  
  9. S=svd(x);
  10. y=max(S)/min(S); 
  11.